package w4;

public class GoodDogTest {
	public static void main(String[] args) {
		Dog d = new Dog();
		d.size = 0;
		d.bark();
		
		GoodDog gd = new GoodDog();
		// gd.size = 0; 不能直接赋值
		gd.setSize(0);
		gd.setSize(50);
		gd.setSize(200);
		gd.bark();
	}

}
